UNPKG

403 BJavaScriptView Raw
1import test from 'ava';
2import browserEnv from '../dist';
3
4test(t => {
5 t.is(typeof window, 'undefined');
6 t.is(typeof document, 'undefined');
7 t.is(typeof navigator, 'undefined');
8 t.is(typeof HTMLElement, 'undefined');
9 browserEnv();
10 t.not(typeof window, 'undefined');
11 t.not(typeof document, 'undefined');
12 t.not(typeof navigator, 'undefined');
13 t.not(typeof HTMLElement, 'undefined');
14});